-
Notifications
You must be signed in to change notification settings - Fork 165
Jobs API Implementation #3911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jobs API Implementation #3911
Conversation
… is enabled). DI container added. Inmemory repo added.
- Add jobs router with POST /jobs, GET /jobs/{job_id}, DELETE /jobs/{job_id}
- Implement dependency injection for use cases, repositories, and ID generator
- Define request/response schemas for job operations
- add api/jobs/schemas.py with Pydantic models (CreateJobRequest,
CreateJobResponse, GetJobResponse, StageResponse, ErrorResponse)
- add api/jobs/routes.py with POST/GET/DELETE /api/v1/jobs endpoints
- add api/jobs/dependencies.py with DI wiring for use cases and repos
- add infra/repositories/ with in-memory repository implementations
- wire routes to CreateJobUseCase for complete job creation flow
- implement GET job with repository lookup and stage retrieval
- implement DELETE job with tombstone and stage cancellation
- register jobs router in api/router.py
…oved catalog_uri and added client_name - Add required client_id field to CreateJobRequest schema with validation - Update Job entity, command, and DTO to store request client_id
|
|
||
| api_router.include_router(auth_router) | ||
| api_router.include_router(parse_catalog_router) | ||
| api_router.include_router(jobs_router) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this order is correct. jobs router should be before parse catalog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the order here does not matter.
Rajeshkumar-s2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the existing directory structure for the tests folder.
CreateJobResponse, GetJobResponse, StageResponse, ErrorResponse)